import 'package:flutter/cupertino.dart';

class RateList {
  static List<Map> getAll() {
    int _point = 0;
    var _pokers = [
      "A",
      "K",
      "Q",
      "J",
      "T",
      "9",
      "8",
      "7",
      "6",
      "5",
      "4",
      "3",
      "2",
    ];
    List<Map> list = [];
    for (int i = 0; i < 13; i++) {
      for (int j = 0; j < 13; j++) {
        Map keys = {
          "name": "",
          "select": false,
          "isCursor": false,
          "isBigJunko": false,
          "isPairs": false,
          "isSuit": false,
          "notSuit": false,
        };
        if (j == _point) {
          if (j <= 4 && _point <= 4) {
            keys["isBigJunko"] = true;
          }
          keys["isPairs"] = true;
          keys["name"] = _pokers[j] + _pokers[j];
          list.add(keys);
          continue;
        }
        if (j < _point) {
          if (j <= 4 && _point <= 4) {
            keys["isBigJunko"] = true;
          }
          keys["notSuit"] = true;
          keys["name"] = _pokers[j] + _pokers[i] + "o";
          list.add(keys);
          continue;
        }
        if (j > _point) {
          if (j <= 4 && _point <= 4) {
            keys["isBigJunko"] = true;
          }
          keys["isSuit"] = true;
          keys["name"] = _pokers[j] + _pokers[i] + "s";
          list.add(keys);
          continue;
        }
      }
      _point++;
    }
    return list;
  }
}
